#!/bin/bash

rootPath=/root/HPMQ/distributedMQ
# 项目源文件目录
src_dirs=(
    "$rootPath/code/zeroplusmq"
    "$rootPath/code/examples"
    "$rootPath/code/tests"
)

# 遍历所有源文件目录
for dir in "${src_dirs[@]}"; do
    for file in $(find "$dir" -name '*.cpp'); do
        echo "Analyzing $file..."
        include-what-you-use "$file"
    done
done